<!DOCTYPE html>
<html>
<head>
    <title>用户搜索</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
    <style type="text/css">
        body {
            margin: 20px auto 0 auto;
        }
    </style>
</head>
<body>

@foreach($users as $user)
<h1>{{ $user->nickname }}</h1>
<table class="table table-bordered">
    <tr>
        <th>用户名</th>
        <th>时间</th>
    </tr>
    @foreach($user->fans()->where('status7_at','>=',$time)->get() as $fan)
        <tr>
            <td>{{ $fan->nickname }}</td>
            <td>{{ $fan->status7_at }}</td>
        </tr>
    @endforeach
</table>
<hr>
@endforeach
<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
</body>
</html>